<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var money=prompt('请输入口袋里的钱数');
    if(money >= 2000){
        alert('请大家吃西餐');
    }else if (money >= 1500 && money <= 1999){
        alert('请大家吃快餐');
    }else if(money >= 1000 && money <= 1499){
        alert('请大家喝饮料');
    }else if(money >= 500 && money <=999){
        alert('请大家吃棒棒糖');
    }else {
        alert('下次把钱带够');
    }
</script>
<body>

</body>
</html>